package org.jsbd.boss.common;

public enum GetUpdateResult {

    SUCCESS(0, "获取代码成功"),
    NET_REGS_SUCCESS(0, "联网登入成功"),
    FAIL(1, "获取代码失败"),
    CODE_IS_NULL(2, "代码已经取完"),
    CODE_ERROR(3, "获取代码失败"),
    PID_ERROR(4, "获取代码失败"),
    IMSI_ISBLANK(5, "imsi为空"),
    IMEI_ISBLANK(6, "imei为空"),
    CPID_ISBLANK(7, "cpid为空"),
    PID_ISBLANK(8, "pid为空"),
    DECODE_PARAMS_ERROR(9, "解码参数错误"),
    DECODE_PARAMS_EXCEPTION(10, "解码参数异常"),
    HTTP_GET_EXCEPTION(11, "向中移动服务器发送注册信息接口"),
    HTTP_GET_STATUS_EXCEPTION(12, "向中移动服务器发送注册信息接口状态错误"),
    NET_REGS_REVERSE_EXCEPTION(13, "向中移动服务器发送反向验证信息接口异常"),
    NET_REGS_TIMEOUT(14, "联网登入超时"),
    NET_REGS_FIRST_EXCEPTION(15, "向中移动服务器第一次发送注册信息接口异常"),
    USER_TOKEN_IS_NULL(16, "userToken为空"),
    HTTP_REC_MESSAGE_EXCEPTION(17, "返回报文解析异常"),
    IS_WHITE_LIST(98, "白名单"),
    IS_BLACK_LIST(99, "黑名单");

    private int    code;

    private String message;

    private GetUpdateResult(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
